package learning.spring.contacts.repository;

import learning.spring.contacts.domain.Contact;
import org.springframework.data.repository.CrudRepository;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: bibro
 * Date: 21.02.14
 * Time: 21:23
 * To change this template use File | Settings | File Templates.
 */
public interface ContactRepository extends CrudRepository<Contact, Long> {
    public List<Contact> findByFirstName(String firstName);
    public List<Contact> findByLastName(String LastName);
    public List<Contact> findByFirstNameAndLastName(String firstName, String lastName);
}
